<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <h1>{{value}}</h1>
    <template>
        <el-select v-model="value" placeholder="请选择">
            <!--label是展示给用户看的内容，value是选择一个后得到的值-->
            <el-option
                    v-for="item in options"
                    :label="item.label"
                    :value="item.value">
            </el-option>
        </el-select>
    </template>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function() {
            return {
                options: [{
                    value: '选项1',
                    label: '黄金糕1'
                }, {
                    value: '选项2',
                    label: '双皮奶2'
                }, {
                    value: '选项3',
                    label: '蚵仔煎3'
                }, {
                    value: '选项4',
                    label: '龙须面4'
                }, {
                    value: '选项5',
                    label: '北京烤鸭5'
                }],
                value: ''
            }
        },
        methods:{

        }
    })
</script>
</html>